﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel.Demo
{
  public  class EFMenuContext:DbContext
    {
        private const string connectionString = @"Data Source=153.99.178.185;Initial Catalog=codefirstdemo;Persist Security Info=True;User ID=codefirstdemo;Password=LfOHggbOc41nc0O";

        //指定数据库,如果不指定,会在项目"App_Data"中自动生成
        public EFMenuContext()
            : base(connectionString) { }

        public DbSet<Menu> Menus { get; set; }
      
    }
}
